﻿using AikeShoopPro.Admin.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;

namespace AikeShoopPro.Admin.Controllers
{
    [Authorize]
    public class HomeController : BaseController
    {
        private readonly ILogger<HomeController> _logger;

        public HomeController(ILogger<HomeController> logger)
        {
            _logger = logger;
        }

        public IActionResult Index()
        {
            string name = this.UserName;
            //获取 account 传递过来的 username 
            string username = HttpContext.User.Identity.Name;
            return View();
        }

        public string Munulist() 
        {
            return null;
        }

        public IActionResult Tree1() 
        {
            return View();
        }

        public IActionResult Tree2()
        {
            return View();
        }

        public IActionResult Tree3()
        {
            return View();
        }

        public IActionResult Tree4()
        {
            return View();
        }

        public IActionResult Tree5()
        {
            return View();
        }
    }
}
